Skip to content

Refactor InspectionAreaVerification dialog - #2861

Open
marianards wants to merge 1 commit into
equinor:mainfrom
marianards:fix-null-lenght
Open

Refactor InspectionAreaVerification dialog#2861
marianards wants to merge 1 commit into
equinor:mainfrom
marianards:fix-null-lenght

Conversation

@marianards

@marianards marianards commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Closes #2852

Ready for review checklist:

  • A self-review has been performed
  • All commits run individually
  • Temporary changes have been removed, like console.log, TODO, etc.
  • The PR has been tested locally
  • A test has been written
    • This change doesn't need a new test
  • Relevant issues are linked
  • Remaining work is documented in issues
    • There is no remaining work from this PR that require new issues
  • The changes does not introduce dead code as unused imports, functions etc.

robot: RobotWithoutTelemetry | undefined,
missionInspectionAreas: InspectionArea[]
): InspectionAreaDialogType | null => {
if (!robot) return InspectionAreaDialogType.unknown

@marianards marianards Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No robot check needed: a missing robot only skips the "robot in different area" warning below, and scheduling/rerun targets the mission's own robot anyway. If the robot happens to be null there will be logic for that later on

@marianards marianards changed the title Fix null lenght Refactor InspectionAreaVerification dialog Aug 4, 2026

@andchiind andchiind left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor InspectionAreaVerification dialog

2 participants